<include file="public/header"/>

<body>

<!--main-->
<style type="text/css">
body{ background:#f4f4f4;}
</style>
<div class="pPersonal-warp" style="padding-bottom:20px;">
  <div class="bg-green">
  </div>
  <ul class="pconsultant-list">

    <volist name="list" id="list">
    <li>
      <div class="pic fl">
        <a href="{$list.head_img|head_img}"><img src="{$list.head_img|head_img}"></a>
      </div>
      <a href="{:U('Coach/detail',array('itemid' => $list.coach_id))}">
      <div class="word fl">
        <h3 class="t">{$list.coach_name}
          <label>从业年限：{$list.year}年</label>
        </h3>
        <div class="s">
          <!--<span class="fen">4.0</span><img src="__PUBLIC__/home/images/start-4.png">-->
        </div>
        <div class="c">
          {$list.coach_remark|getSubstr=0,21}
        </div>
      </div>
      </a>
      <a href="javascript:;" class="choose" data-id="{$list.coach_id}"  onclick="choose(this)" >选择</a> </li>
    </volist>



  </ul>
</div>
<!--main End-->

<script>

function choose(obj) {
    var id = $(obj).attr('data-id');
    $.ajax({
    type : "POST",
    url: '/home/order/place_order.html',
    data : {coach_id:id},// 你的formid
    dataType: 'json',
    success: function(data){
        if(data.status==200){
            window.location.href = "{:U('order/place_order')}";
        }else{
            window.location.href = "{:U('User/login')}";
        }}
    });
}
</script>



</body>
</html>
